package com.qijian.maindata.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.qijian.common.annotation.Excel;
import com.qijian.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * 安全员对象 qm_safety
 *
 * @author qijian
 * @date 2022-10-11
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString
@TableName("qm_safety")
public class Safety extends BaseEntity{
    private static final long serialVersionUID = 1L;

    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "ID")
    private Long id;

    @Excel(name = "用户ID")
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "用户ID")
    private Long userId;

    @Excel(name = "用户名称")
    @ApiModelProperty(value = "用户名称")
    private String nickName;

    @Excel(name = "管辖区域")
    @ApiModelProperty(value = "管辖区域")
    private String region;

    @Excel(name = "管辖人数")
    @ApiModelProperty(value = "管辖人数")
    private Long quantity;

}
